package com.belizer.demo.streamApi;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class Demo {
    public static void main(String[] args) {

        List<Integer> list = Arrays.asList(1,23,323,3235,23433,34,79);

        System.out.println(list.stream().filter(i -> i.equals(1)).collect(Collectors.toList()));
    }
}
